[IA64] Remove VALIDATE_VT code
authorawilliam@xenbuild2.aw <awilliam@xenbuild2.aw>
Tue, 23 Jan 2007 15:48:39 +0000 (08:48 -0700)
committerawilliam@xenbuild2.aw <awilliam@xenbuild2.aw>
Tue, 23 Jan 2007 15:48:39 +0000 (08:48 -0700)
Signed-off-by: Zhang Xin <xing.z.zhang@intel.com>
xen/arch/ia64/Rules.mk
xen/arch/ia64/linux-xen/head.S
xen/arch/ia64/xen/domain.c
xen/include/asm-ia64/config.h

index e63faf67ef41694a44f26171731302c8c4e0b0bb..eefd5fe1abcc4e9465752c8b415bfa0c89dbae23 100644 (file)
@@ -4,7 +4,6 @@
 HAS_ACPI := y
 HAS_VGA  := y
 xenoprof := y
-VALIDATE_VT    ?= n
 no_warns ?= n
 xen_ia64_expose_p2m    ?= y
 xen_ia64_pervcpu_vhpt  ?= y
@@ -37,9 +36,6 @@ CFLAGS        += -DIA64 -DXEN -DLINUX_2_6
 CFLAGS += -ffixed-r13 -mfixed-range=f2-f5,f12-f127
 CFLAGS += -g
 #CFLAGS  += -DVTI_DEBUG
-ifeq ($(VALIDATE_VT),y)
-CFLAGS  += -DVALIDATE_VT
-endif
 ifeq ($(xen_ia64_expose_p2m),y)
 CFLAGS += -DCONFIG_XEN_IA64_EXPOSE_P2M
 endif
index 22145109da59838e4f2327913739f7a7d3b0b60e..5c8c60cbb6d4445da4c3439f23c7230b7ede1e49 100644 (file)
@@ -267,13 +267,8 @@ start_ap:
        /*
         * Switch into virtual mode:
         */
-#if defined(XEN) && defined(VALIDATE_VT)
-       movl r16=(IA64_PSR_IT|IA64_PSR_IC|IA64_PSR_DT|IA64_PSR_RT|IA64_PSR_DFH\
-                 |IA64_PSR_DI)
-#else
        movl r16=(IA64_PSR_IT|IA64_PSR_IC|IA64_PSR_DT|IA64_PSR_RT|IA64_PSR_DFH|IA64_PSR_BN \
                  |IA64_PSR_DI)
-#endif
        ;;
        mov cr.ipsr=r16
        movl r17=1f
@@ -292,11 +287,7 @@ start_ap:
        ;;
 
        // set IVT entry point---can't access I/O ports without it
-#if defined(XEN) && defined(VALIDATE_VT)
-       movl r3=vmx_ia64_ivt
-#else
        movl r3=ia64_ivt
-#endif
        ;;
        mov cr.iva=r3
        movl r2=FPSR_DEFAULT
@@ -368,15 +359,8 @@ start_ap:
        
 .load_current:
        // load the "current" pointer (r13) and ar.k6 with the current task
-#if defined(XEN) && defined(VALIDATE_VT)
-       mov r21=r2
-       ;;
-       bsw.1
-       ;;
-#else
        mov IA64_KR(CURRENT)=r2         // virtual address
        mov IA64_KR(CURRENT_STACK)=r16
-#endif
        mov r13=r2
        /*
         * Reserve space at the top of the stack for "struct pt_regs".  Kernel
index f28d2040e03bcdcc646b1207f644ba6871858ec7..dc4ead671f0338c4b0333e43d72a0b804b198f19 100644 (file)
@@ -996,12 +996,6 @@ int construct_dom0(struct domain *d,
        unsigned long bp_mpa;
        struct ia64_boot_param *bp;
 
-#ifdef VALIDATE_VT
-       unsigned int vmx_dom0 = 0;
-       unsigned long mfn;
-       struct page_info *page = NULL;
-#endif
-
 //printk("construct_dom0: starting\n");
 
        /* Sanity! */
@@ -1022,23 +1016,6 @@ int construct_dom0(struct domain *d,
        if ( rc != 0 )
            return rc;
 
-#ifdef VALIDATE_VT
-       /* Temp workaround */
-       if (running_on_sim)
-           dsi.xen_section_string = (char *)1;
-
-       /* Check whether dom0 is vti domain */
-       if ((!vmx_enabled) && !dsi.xen_section_string) {
-           printk("Lack of hardware support for unmodified vmx dom0\n");
-           panic("");
-       }
-
-       if (vmx_enabled && !dsi.xen_section_string) {
-           printk("Dom0 is vmx domain!\n");
-           vmx_dom0 = 1;
-       }
-#endif
-
        p_start = dsi.v_start;
        pkern_start = dsi.v_kernstart;
        pkern_end = dsi.v_kernend;
@@ -1132,14 +1109,6 @@ int construct_dom0(struct domain *d,
 
        printk("Dom0: 0x%lx\n", (u64)dom0);
 
-#ifdef VALIDATE_VT
-       /* VMX specific construction for Dom0, if hardware supports VMX
-        * and Dom0 is unmodified image
-        */
-       if (vmx_dom0)
-           vmx_final_setup_guest(v);
-#endif
-
        set_bit(_VCPUF_initialised, &v->vcpu_flags);
 
        /* Build firmware.
index 063e6e33ebabeb96a1cc715cc129c2c86ed988e6..5010a86e7b1cea684ccc6cc0f928824bd5f5d47e 100644 (file)
@@ -183,11 +183,7 @@ void sort_main_extable(void);
 #define find_first_set_bit(x)  (ffs(x)-1)      // FIXME: Is this right???
 
 // see drivers/char/console.c
-#ifndef VALIDATE_VT
 #define        OPT_CONSOLE_STR "com1"
-#else
-#define        OPT_CONSOLE_STR "com2"
-#endif
 
 #define __nocast